﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/MasterPages/Blank.Master" AutoEventWireup="true" CodeBehind="StatBaseInfo.aspx.cs" Inherits="DMS.Web.Modules.Statistics.StatBaseInfo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageTitle" runat="server">
    基本资料统计
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">

    <SCRIPT type="text/javascript" src= "../../FusionCharts/FusionCharts.js"></SCRIPT>
    <script type="text/javascript" language="javascript">
        function showFrame(index, obj) {
            $(obj).siblings('.body').children().css('display', 'none');
            $(obj).siblings('.body').children(':eq(' + index + ')').css('display', 'inline');
            $(obj).attr('class', 'title');
            $(obj).siblings('[class$=title]').attr('class', 'title_behind');
        }
        
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainHolder" runat="server">
    <div class="search">
                
                <!----------- 查询信息 ------------------>
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="form">
                            <table cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <th>
                                        统计维度：
                                    </th>
                                    <td>
                                        <asp:DropDownList ID="ddlType" runat="server" Width="150px">
                                            <asp:ListItem Text="请选择.." Value=""></asp:ListItem>
                                            <asp:ListItem Text="缴费单位类型" Value="1" Selected="True"></asp:ListItem>
                                            <asp:ListItem Text="单位、个体户、个人" Value="2"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <th>
                                        统计时间：
                                    </th>
                                    <td>
                                        <asp:TextBox ID="txtBeginInitialTime" onClick="WdatePicker()" runat="server" Width="150px"></asp:TextBox>
                                        至
                                        <asp:TextBox ID="txtEndInitialTime" onClick="WdatePicker()" runat="server" Width="150px"></asp:TextBox>
                                    </td>
                                    <td class="button">
                                        <asp:LinkButton CssClass="linkbtn" ID="btnStat"  OnClick="btnStat_Click" runat="server"><span>统计</span></asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>

            <div class="webpart">
                    <div id="div_List" class="title" onclick="showFrame(0,this)" style="display:inline;width:105px;cursor:hand">
                        报表展示</div>
                    <div id="div_Chart" class="title_behind" onclick="showFrame(1,this)" style="display:inline;width:105px;cursor:hand">
                        图表展示</div>
                    <div class="body">
                        <div>
                            <!----------- 数据列表 ------------------>
                            <asp:GridView ID="gvList" runat="server" class="dg_borderstyle" AutoGenerateColumns="False"
                                CellPadding="0" CellSpacing="1" border="0" AlternatingRowStyle-CssClass="dg_alternatingitemstyle"
                                RowStyle-CssClass="dg_itemstyle" OnRowDataBound="gvList_RowDataBound" AllowPaging="True"
                                OnPageIndexChanging="gvList_PageIndexChanging" PagerStyle-HorizontalAlign="Right"
                                PagerSettings-Visible="true" OnRowCommand="gvList_RowCommand">
                                <HeaderStyle CssClass="dg_headerstyle"></HeaderStyle>
                                <AlternatingRowStyle CssClass="dg_alternatingitemstyle"></AlternatingRowStyle>
                                <Columns>
                                    <asp:BoundField DataField="Name" HeaderText="统计维度" />
                                    <asp:BoundField DataField="subtotal" HeaderText="户数" />
                                    <asp:TemplateField HeaderText="户数占比">
                                        <ItemTemplate>
                                        <%# Eval("Rate")%>%
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="totalInsuranceCount" HeaderText="参保人数" />
                                    <asp:TemplateField HeaderText="参保人数占比">
                                        <ItemTemplate>
                                        <%# Eval("rateInsuranceCount")%>%
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="ArchivesInfoCount" HeaderText="资料份数" />
                                    <asp:BoundField DataField="PageCount" HeaderText="资料张数" />
                                </Columns>
                                <PagerStyle HorizontalAlign="Right"></PagerStyle>
                                <RowStyle CssClass="dg_itemstyle"></RowStyle>
                            </asp:GridView>
                        </div>
                        <div style="display: none" align="center">
                            <asp:Literal ID="litChart" runat="server"></asp:Literal>
                        </div>
                    </div>
            </div>


            
            
        <!--总数量-->
    <div>
    <br />
        <table width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <th width="70px">
                    总户数：
                </th>
                <td>
                    <asp:Label ID="lbTotalQuantity" runat="server" Text="0"></asp:Label>
                </td>
                 <th width="80px">
                    总参保人数：
                </th>
                <td>
                    <asp:Label ID="lbcountQuantity" runat="server" Text="0"></asp:Label>
                </td>
                <th width="80px">
                    总资料份数：
                </th>
                <td>
                    <asp:Label ID="lbinfoQuantity" runat="server" Text="0"></asp:Label>
                </td>
                <th width="80px">
                    总资料张数：
                </th>
                <td>
                    <asp:Label ID="lbpageQuantity" runat="server" Text="0"></asp:Label>
                </td>
            </tr>
            <tr>
                <th width="180px">
                    档案类型（登记类）份数：
                </th>
                <td>
                    <asp:Label ID="DJLABEL" runat="server" Text="0"></asp:Label>
                </td>
                 <th width="180px">
                    档案类型（征缴类）份数：
                </th>
                <td>
                    <asp:Label ID="ZJLABEL" runat="server" Text="0"></asp:Label>
                </td>
                <th width="80px">
                   
                </th>
                <td>
                   
                </td>
                <th width="80px">
                   
                </th>
                <td>
                    
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
